<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>~~取整数</title>
</head>

<body>

</body>
<script>
  "use strict";
  let i = 5.345555;
  console.log((~~i));
</script>

</html>